import request from '../utils/request'
import requestExcel from '../utils/request-excel'

export function findUserPage(current, size, userVO) {
    return request({
        url: '/user/findUserPage',
        method: 'post',
        params: {
            current,
            size
        },
        data: userVO,
        contentType: 'application/json'
    })
}

export function modifyStatus(id) {
    return request({
        url: '/user/modifyStatus/' + id,
        method: 'atch',
    })
}

export function excel(userVO) {
    return requestExcel({
        url: '/user/excel',
        method: 'post',
        data: userVO,
        responseType: "blob"
    })
}

export const deleteImgFile= (file) => {
    return request({
      url: "/oss/deleteImgFile",
      method: 'post',
      params: {
        file
      }
    })
  }